<template>
  <div class="box">
    <el-card>
      <el-form ref="form" :model="form" label-width="100px">
        <el-row>
          <div class="title">
            <el-form-item label="项目名称" style="width: 50%">
              <template slot-scope="scope">
                <span style="font-weight: 600; font-size: 20px" v-html="form.name1"></span>
              </template>
            </el-form-item>
          </div>
          <el-col :span="6">
            <el-form-item label="督办编号">
              <div v-html="form.SupvNumber"></div>
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="级别">
              <div v-html="form.dept"></div>
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="来源">
              <div v-html="form.perl"></div>
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="创建人">
              <div v-html="form.name"></div>
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="分类">
              <div v-html="form.Classification"></div>
            </el-form-item>
          </el-col>
          <el-col :span="18">
            <el-form-item label="任务标题">
              <div v-html="form.title"></div>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="具体任务">
              <div v-html="form.SpecificTasks"></div>
              <!-- <el-input
                type="textarea"
                v-model="form.SpecificTasks"
                :autosize="{ minRows: 5, maxRows: 5 }"
                disabled
              ></el-input> -->
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="工作举措">
              <div v-html="form.WorkMeasures"></div>
              <!-- <el-input
                type="textarea"
                v-model="form.WorkMeasures"
                :autosize="{ minRows: 5, maxRows: 5 }"
                disabled
              ></el-input> -->
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="完成标准">
              <div v-html="form.Standard"></div>
              <!-- <el-input
                type="textarea"
                v-model="form.Standard"
                :autosize="{ minRows: 5, maxRows: 5 }"
                disabled
              ></el-input> -->
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="备注">
              <div v-html="form.Remarks"></div>
              <!-- <el-input
                type="textarea"
                v-model="form.Remarks"
                :autosize="{ minRows: 5, maxRows: 5 }"
                disabled
              ></el-input> -->
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
      <el-col :span="24" class="btn-Add"> 成果与限制时间： </el-col>
      <el-table :data="tableData" style="width: 100%" height="300" border>
        <el-table-column
          prop="achievement"
          label="预期标志性成果"
          min-width="500"
          :autosize="{ minRows: 5, maxRows: 5 }"
        >
        </el-table-column>
        <el-table-column prop="time" label="完成时间" min-width="150"> </el-table-column>
        <el-table-column prop="person" label="责任部门" min-width="230"> </el-table-column>
      </el-table>
      <el-col :span="24" class="btn-Add"> 最新进展： </el-col>

      <el-table :data="tableDatas" style="width: 100%" height="300" border>
        <el-table-column prop="ms" label="任务描述" min-width="230"> </el-table-column>
        <el-table-column prop="time" label="要求完成时间" min-width="230"> </el-table-column>
        <el-table-column prop="name" label="责任人" min-width="230"> </el-table-column>
        <el-table-column prop="bl" label="完成比例" min-width="230"> </el-table-column>
        <el-table-column prop="jz" label="最新进展" min-width="230">
          <template slot-scope="scope">
            <div v-html="scope.row.jz"></div>
            <!-- <el-input type="textarea" v-model="scope.row.jz" :autosize="{ minRows: 3, maxRows: 5 }" disabled></el-input> -->
            <el-link type="success" @click="onlinkTaskTitle(scope.row)">{{ scope.row.link }}</el-link>
          </template>
        </el-table-column>
      </el-table>
      <span slot="footer" class="dialog-footer">
        <el-button type="primary" @click="Cancel">保存</el-button>
        <el-button type="primary" @click="Sure">单独提交</el-button>
      </span>
    </el-card>
  </div>
</template>

<script>
export default {
  // props: ['dialogVisible'],
  // watch: {
  //   Visibles(newVal, oldVal) {
  //     // newVal是新值，oldVal是旧值
  //     this.Visibles = newVal
  //     console.log('1')
  //   }
  // },
  data() {
    return {
      Visibles: this.$route.query.dis,
      form: {
        name1: '2025xx行动',
        dept: '集团级',
        perl: '其他',
        name: '其他',
        Classification: '定方向',
        title: '1.深入谋划“十五五”发展规划',
        SpecificTasks:
          '深入子公司走访调研，进一步把握相关业务的产业政策、市场形势、发展趋势，并结合上级部署要求和集团功能定位、主责主业和拟培育方向，提出集团“十五五”时期战略定位、主攻方向、发展目标、主要路径等，编制集团公司“十五五”规划指引',
        WorkMeasures:
          '1.指导各子公司开展“十五五”规划前期分析，通过开展行业内外走访调研等方式，切实把握好各业务产业政策、市场形势、发展趋势。<br/>2.组织各子公司开展“十五五”规划思路研究，结合产业发展形势分析情况，提出本企业“十五五”时期战略思路、发展目标等。<br/>3.根据国资委“十五五”规划编制有关安排和集团公司战略发展相关部署，结合各子公司“十五五”规划编制思路，综合分析、深入论证，初步明确集团“十五五”时期战略定位、主攻方向、发展目标、主要路径等，研究提出集团“十五五”规划编制指引。',
        Standard: '1.各子公司初步明晰本企业“十五五”发展思路<br/>2.集团初步明确“十五五”发展思路'
      },
      tableData: [
        { achievement: '1.集团“十五五”发展初步思路', time: '2025-03-05' },
        { achievement: '2.集团“十五五”规划总体框架', time: '2025-06-05' },
        { achievement: '3.集团“十五五”发展总体规划', time: '2025-10-05' }
      ],
      tableDatas: [
        {
          ms: '1.集团“十五五”发展初步思路',
          time: '2025-03-01',
          name: '张XX',
          bl: '10%',
          jz: '2025-03-01<br/>根据XXX要求，我部门开展专题活动，对XX进行多方讨论......',
          link: '2025-01-01进展.pdf'
        },
        {
          ms: '2.集团“十五五”规划总体框架',
          time: '2025-06-01',
          name: '王XX',
          bl: '50%',
          jz: '2025-03-20<br/>根据XXX要求，我部门开展专题活动，对XX进行多方讨论......'
        }
      ]
    }
  },
  created() {
    this.Visibles = this.$route.query.dis
    console.log(this.Visibles)
  },
  methods: {
    Cancel() {
      // this.Visibles = false
      // this.$emit('Cancel', this.Visibles)
    },
    Sure() {
      // this.Visibles = false
      // this.$emit('Cancel', this.Visibles)
    },
    handleClose(done) {
      // this.Visibles = false
      // this.$emit('Cancel', this.Visibles)
    },
    oldAdd() {}
  }
}
</script>

<style scoped>
.box >>> .el-select {
  width: 93%;
}
.title {
  display: flex;
  justify-content: center;
}
.btn-Add {
  padding: 20px 0;
}
.box {
  padding: 20px;
  background-color: #fdfbf2;
}
.el-card {
  background-color: transparent;
}
.box >>> .el-table,
.el-table__expanded-cell {
  background-color: transparent;
  /* border: 1px solid #000; */
}

.box >>> input {
  background-color: transparent;
}

.box >>> .el-table th {
  background-color: transparent !important;
  /* border: 1px solid #000; */
}
.box >>> .el-table tr {
  background-color: transparent !important;
  /* border: 1px solid #000; */
}
.box >>> .el-link {
  border-bottom: 1px solid #13ce66;
}
</style>
